//
//  HotSellerCollectionReusableView.m
//  GiftItems
//
//  Created by lanou3g on 15/9/20.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "HotSellerCollectionReusableView.h"
#import "HotSellerMoreModel.h"
@implementation HotSellerCollectionReusableView
// 利用Model赋值
- (void)setValueOfAttributesWithModel:(HotSellerMoreModel *)model {
    self.title.text = model.name;
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubviews];
    }
    return self;
}
- (void)addSubviews {
    self.headView = [[UIView alloc] initWithFrame:CGRectMake(10, 0, 150, 30)];
    [self addSubview:self.headView];
    
    self.title = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, 30)];
    self.title.textColor = kRGB(255.0, 255.0, 180.0);
    self.title.font = [UIFont boldSystemFontOfSize:18.0];
    [self.headView addSubview:self.title];
    
    UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(10, 29, 150, 1)];
    lineView.backgroundColor = [UIColor whiteColor];;
    [self addSubview:lineView];
}

@end
